import request from '@/utils/request'

// 回复列表 - 支持分页参数
export function getForumReply(params) {
  return request({
    url: '/forum-reply',
    method: 'GET',
    params: {
      pageNum: params.pageNum || 1,
      pageSize: params.pageSize || 10,
      forumId: params.forumId,
      ...params
    }
  })
}

// 新增回复
export function createForumReply(data) {
  return request({
    url: '/forum-reply',
    method: 'POST',
    data
  })
}

// 批量删除回复
export function deleteForumReplyBatch(data) {
  return request({
    url: '/forum-reply/batch',
    method: 'DELETE',
    params: {
      ids: data
    }
  })
}
